package com.village.friend.service;

import com.village.friend.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author yl
 * @since 2021-11-13
 */
public interface UserService extends IService<User> {
    User getUserByUserMobile(String mobile, Double latitude, Double longitude);

    User getUserByUserId(Integer uid, Double latitude, Double longitude);

    Integer updateHeart(Integer uid, String city, Double longitude, Double latitude);

    Integer updateVipByUid(Integer uid, Integer vipLevel, LocalDateTime vipEnd);

    Integer updateGenderByUid(Integer uid, Integer gender, String name);

    Integer updateGenderInviteByUid(Integer uid, Integer gender, String name, Integer parent, String inviteCode);

    Integer updateUserByUid(Integer id, String nickname, String avatarurl, String birth, Integer height, Integer weight, String photos, Integer isHide, Integer isFreeze, Integer isLogout, Integer vipLevel, String city, String selfDesc, String profession, String salaryYear, String weChatAccount, String flags);

    List<User> list(Integer userId, Integer gender, String city, Integer ageStart, Integer ageEnd, Integer heightStart, Integer heightEnd, String salaryYear, Double latitude, Double longitude, Integer offset, Integer limit, Integer mode);

    Integer listCount(Integer userId, Integer gender, String city, Integer ageStart, Integer ageEnd, Integer heightStart, Integer heightEnd, String salaryYear);

}
